package com.lyc.beans;

public class Book {
    private int id;
    private String title;
    private String author;
    private int num =0;

    public Book() {

    }

    public Book(int id, String title, String author, int num) {
        this.id = id;
        this.title = title;
        this.author = author;
        this.num = num;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    @Override
    public String toString() {
        return "Book{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", author='" + author + '\'' +
                ", num=" + num +
                '}';
    }
}
